Skip to main content

Create Ticket

AutomatR.FreshDesk.Activities.CreateTicket

The "Create Ticket" activity in AutomatR is part of the Freshdesk activities package, designed to facilitate the creation of a new ticket in a Freshdesk user's account. This activity streamlines the process of initiating support or service requests within Freshdesk, enhancing automation workflows.

Properties

NameDescription
Input
CCEmailsSpecifies the email addresses added in the 'cc' field of the incoming ticket email. It is an array of strings representing additional recipients to be notified. String array variables containing the email addresses.
DescriptionSpecifies the HTML content of the ticket. It is a required input, representing the detailed description or content of the ticket. String variables containing the HTML content.
EmailSpecifies the email address of the requester or creator of the ticket. It is a required input, uniquely identifying the user initiating the ticket. String variables containing the email address.
PhoneSpecifies the phone number of the requester. It is a required input, representing the contact number of the user initiating the ticket. Integer variables containing the phone number.
PrioritySpecifies the priority of the ticket. It is a required input with a default value of '1'. Integer variables containing the priority value.
ResponderIDSpecifies the ID of the agent to whom the ticket has to be assigned. It is a required input, uniquely identifying the agent responsible for the ticket. Integer variables containing the responder ID.
SourceSpecifies the channel through which the ticket has to be created. It is a required input with a default value of '2'. Integer variables containing the source channel.
StatusSpecifies the status of the ticket. It is a required input with a default value of '2'. Integer variables containing the status value.
SubjectSpecifies the subject or title of the ticket. It is a required input, representing the brief summary or title of the ticket. String variables containing the subject.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get All Agents" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs the response as an object, providing information about the success or failure of the ticket creation. Variables of type dynamic to store the response.

How to use:

  1. Drag and drop the "Create Ticket" activity onto the workflow.
  2. Configure the properties by specifying the HTML content, subject, email, phone, priority, status, responder ID, source, and CC emails for the ticket.
  3. Optionally, configure the delay.
  4. Execute the workflow to create a new ticket within Freshdesk.

Example: Consider an example where the "Create Ticket" activity is used to initiate a new ticket with the specified details:

Create Ticket:
Display Name: "Initiate Support Request"
Description: "<p>Customer is experiencing issues with the product.</p>"
Subject: "Product Issue"
Email: "customer@example.com"
Phone: 1234567890
Priority: 2
Status: 3
ResponderID: 987654
Source: 1
CCEmails: ["manager@example.com", "support@example.com"]
Result: ticketCreationResult

In this example, the activity creates a new ticket with the specified HTML content, subject, email, phone, priority, status, responder ID, source, and CC emails. The result of the ticket creation operation is stored in the ticketCreationResult variable for further use in the workflow.